package com.swpu.project.util;

import com.swpu.project.model.dto.user.UserDto;

public  class UserHandler {

private  static  final ThreadLocal<UserDto>  userForThread=new ThreadLocal();


public static void saveUser(UserDto userDto)
{
    userForThread.set(userDto);

}

public static void removeUser()
{
     userForThread.remove();

}


public static UserDto getUserDto()
{
    return userForThread.get();

}


}
